﻿<div class="header-container" id="top">
    <!--top menu ; language menu ; logo ; search ; cart ; account menu-->
    <div class="header container">
        <div class="grid-full">    
    	    <div class="header-top clearer">
                @{
                    //header_top
                    Html.RenderAction("header_top", "pageLayoutClient");
                    }
            </div>
                
		    <div class="header-main v v3">

        	    <div class="logo-wrapper v-item">
			        <a href="/" title="Trang chủ" class="logo"><strong>Trang chủ</strong><img src="/images/logo.png" alt="ubuy.vn" /></a>
                </div>            
                @{ Html.RenderPartial("~/Views/Shared/commont/header_search.cshtml"); }
            
                <div class="user-menu v-item clearer">
                    @{
                        //mini cart
                        Html.RenderAction("Carts", "shoppingCart", new { type = "1" });
                        //menu_member_header
                        //Html.RenderPartial("~/Views/Shared/member/menu_member_header.ascx");     
                        
                    var url_member_login = "/dang_nhap.ub";
                    var url_member_logout = "/thoat.ub";
                    var url_member_management = "/tai_khoan_ca_nhan.ub";
                    var url_register = "/dang_ky.ub";                       
                    }
                    <div class="top-links show-separators">
                        <ul class="links">
                            @if (Session["member_id"] != null) { 
                                <li class="first" ><a href="@url_member_management" title="Tài khoản" >Tài khoản cá nhân</a></li>
                                @*<li ><a href="" title="Danh sách yêu thích" >Danh sách yêu thích</a></li>*@
                                <li class=" last" ><a href="@url_member_logout" title="Thoát tài khoản">Thoát</a></li>
                            }
                            else{
                                @*<li ><a href="" title="Danh sách yêu thích" >Danh sách yêu thích</a></li>*@
                                <li ><a href="@url_register" title="Đăng ký" >Đăng ký</a></li>      
                                <li class=" last" ><a href="@url_member_login" title="Đăng nhập" >Đăng nhập</a></li>
                                }
                        </ul>
                    </div> 
                    <!-- end: top-links -->

                </div> <!-- end: user-menu -->

            </div> <!-- end: v -->

	    </div> <!-- end: grid unit -->
    </div> <!-- end: header -->
    @{
        //main menu
        Html.RenderAction("main_menu_create", "pageLayoutClient");
        }
</div> <!-- end: header-container -->